﻿using Styx;
using Styx.WoWInternals.WoWObjects;
using Styx.WoWInternals;

namespace SPR.Helpers
{
    class Player
    {
        private static LocalPlayer Me
        {
            get { return StyxWoW.Me; }
        }

        #region Energy
        public static int currentEnergy()
        {
            return Lua.GetReturnVal<int>("return UnitMana(\"player\");", 0);
        }
        #endregion

        #region Totem Stuff
        public static bool ChkTotem(string totem)
        {
            bool totchk = false;
            foreach (Styx.WoWInternals.WoWObjects.WoWTotemInfo ti in Me.Totems)
            {
                if (ti.Name == totem)
                    totchk = true;
            }
            return totchk;
        }
        #endregion
    }
}
